Skip to content

Conversation

@vojtechtrefny
Copy link
Member

Fixes: #565

Copy link
Member

@tbzatek tbzatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor docs clarifications, otherwise the code looks sane to me.

/**
* bd_lvm_vgcfgbackup:
* @vg_name: name of the VG to backup
* @backup_file: (nullable): file to save the backup to or %NULL for using the default backup file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still get an impression that this is about backing up the whole VG data. I think it should be noted this is about configuration of the VG.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I've changed both the docstrings to emphasize the backup/restore is for configuration only. I've also added note from the vgcfgbackup which mentions this doesn't back up the LV data.

* (just passed to LVM as is)
* @error: (out) (optional): place to store error (if any)
*
* Returns: Whether the backup was successfully created or not.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps add a sentence from the vgcfgrestore(8) manpage?

Restore volume group configuration

vgcfgrestore restores the metadata of a VG from a text back up file produced by vgcfgbackup.

@vojtechtrefny vojtechtrefny force-pushed the master_vg-backup-restore branch from 32fc59d to 6f58d70 Compare May 31, 2025 17:08
@vojtechtrefny vojtechtrefny merged commit af47076 into storaged-project:master Jun 3, 2025
43 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

how to restore LVM configuration to a PV similar to vgcfgrestore

2 participants